 /**
 * 判断账号是否是事务所账号
 * Copyright (c) 2020 lwf
 */

import store from '@/store'

export default {
 inserted(el, binding, vnode) {
   const { value } = binding;
   const userInfo = store.getters && store.getters.userInfo
   let isOfficeAccount = userInfo.isOfficeAccount;
   if(isOfficeAccount !== value){
     el.parentNode && el.parentNode.removeChild(el)
   }
 }
}
